package com.shensi.adminCollect.service.customer;
import com.shensi.adminCollect.domain.customer.CustomerCardSettingDetailContent;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;

/**
 * (CustomerCardSettingDetailContent)表服务接口
 *
 * @author makejava
 * @since 2023-09-11 10:38:17
 */
public interface CustomerCardSettingDetailContentService {

    /**
     * 通过ID查询单条数据
     *
     * @param ccsdcId 主键
     * @return 实例对象
     */
    CustomerCardSettingDetailContent queryById(Long ccsdcId);

    /**
     *  分页查询
     *
     * @param customerCardSettingDetailContent 筛选条件
     * @param pageRequest      分页对象
     * @return 查询结果
     */
    Page<CustomerCardSettingDetailContent> queryByPage(CustomerCardSettingDetailContent customerCardSettingDetailContent, PageRequest pageRequest);

    /**
     * 新增数据
     *
     * @param customerCardSettingDetailContent 实例对象
     * @return 实例对象
     */
    CustomerCardSettingDetailContent insert(CustomerCardSettingDetailContent customerCardSettingDetailContent);

    /**
     * 修改数据
     *
     * @param customerCardSettingDetailContent 实例对象
     * @return 实例对象
     */
    CustomerCardSettingDetailContent update(CustomerCardSettingDetailContent customerCardSettingDetailContent);

    /**
     * 通过主键删除数据
     *
     * @param ccsdcId 主键
     * @return 是否成功
     */
    boolean deleteById(Long ccsdcId);

    Integer updateByCcsdId(CustomerCardSettingDetailContent detailContent);

    List<CustomerCardSettingDetailContent> query(CustomerCardSettingDetailContent customerCardSettingDetailContent);
}
